<ui:component xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:richx="http://richfaces.org/richx">

	<a4j:status onstart="#{rich:component('wait-dialog-invisible')}.show();"
		onstop="Richfaces.hideModalPanel('wait-dialog-invisible')" />

	<a4j:outputPanel ajaxRendered="true">
		<rich:modalPanel id="wait-dialog" resizeable="false" autosized="false"
			width="200" height="65" moveable="false" shadowOpacity="1" zindex="20000">
			<f:facet name="header">Un momento por favor..</f:facet>
			<h:outputText value="Se esta procesando la solicitud." />
		</rich:modalPanel>

		<!-- Your wait dialog can be invisible for the users if you don't want your screen blink with that dialog on each request -->
		<rich:modalPanel id="wait-dialog-invisible" resizeable="false"
			autosized="false" width="10" height="10" moveable="false" left="-100"
			top="-100" shadowOpacity="0" zindex="20000" />
	</a4j:outputPanel>


</ui:component>
